/*** vender ***/
package main;

import comm.Communication;
import gui.mainFrame;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.UIManager;
import org.jvnet.substance.skin.SubstanceModerateLookAndFeel;

public class Main {

    public static void main(String[] args) {

        /** */
        java.awt.EventQueue.invokeLater(new Runnable() {

        public void run() {
        try {
        JFrame.setDefaultLookAndFeelDecorated(true);
        JDialog.setDefaultLookAndFeelDecorated(true);
        UIManager.setLookAndFeel(new SubstanceModerateLookAndFeel());
        } catch (Exception e) {
        }
        new mainFrame().setVisible(true);
        }
        });/**/
        /** teste de comunicação * /
        if (!Communication.isConnected()) {
            Communication.connect();
        }

        String linha;
        if (Communication.isConnected()) {
            Communication.write("table");
            linha = Communication.read();
            Communication.write("ack");


        }/**/

    }
}
